//
//  YDHomeAdvertisementView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/29.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDHomeAdvertisementView;

@protocol SYHomeAdvertisementViewDelegate <NSObject>

@optional


/**
 点击了哪一个cell

 @param advertisementView view
 @param index 索引
 */
-(void)homeAdvertisementView:(YDHomeAdvertisementView *)advertisementView didClickCellIndex:(NSInteger)index;


@end

@interface YDHomeAdvertisementView : UIView

@property (nonatomic , strong) NSMutableArray *modelArray;

+(instancetype)homeAdvertisementViewWithFrame:(CGRect)frame ModelArray:(NSArray *)modelArray;

@property (nonatomic , weak)id<SYHomeAdvertisementViewDelegate>delegate;

@end
